<?php if(!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="typecho-page-title">
    <h2>R2存储设置</h2>
</div>

<form action="<?php echo \Typecho\Common::url('/action/R2Storage-config', $options->index); ?>" method="post">
    <?php $form->render(); ?>
</form>

<?php if (!empty($logs)): ?>
<div class="typecho-page-title">
    <h2>最近日志</h2>
</div>
<div class="r2-storage-logs">
    <?php foreach ($logs as $date => $content): ?>
    <h3><?php echo $date; ?></h3>
    <pre><?php echo htmlspecialchars($content); ?></pre>
    <?php endforeach; ?>
</div>
<?php endif; ?>